/*
 * Copyright (C) 2004, Velocityme Partnership
 * SystemPropertyActionForm.java
 *
 * Created on 28 October 2004, 08:56
 */

package com.velocityme.www.actionforms;

import com.velocityme.entity.SystemProperty;
import java.util.ArrayList;
import java.util.List;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 *
 * @author  Robert Crida Work
 */
public class SystemPropertyActionForm extends ActionForm {
    
    private List<SystemProperty> m_systemProperties = new ArrayList<SystemProperty>();
    
    /** Creates a new instance of SystemPropertyActionForm */
    public SystemPropertyActionForm() {
    }
    
    @Override
    public void reset(ActionMapping mapping, javax.servlet.http.HttpServletRequest request) {
        for (SystemProperty systemProperty: m_systemProperties) {
            systemProperty.setPrivate(false);
        }
    }
    
    public void setSystemProperties(List<SystemProperty> systemProperties) {
        m_systemProperties = systemProperties;
    }
    
    public List<SystemProperty> getSystemProperties() {
        return m_systemProperties;
    }
    
}
